import {API} from "../utils/request";

export function loginAPI(data) {
    return API({
        url: '/user/doLogin',
        method: 'POST',
        data: data
    })
}

/**
 * 微信登录
 * @param data
 * @returns {Promise<unknown>}
 */
export function WeXinloginAPI(data) {
    return API({
        url: '/user/wx_login/openid?code=' + data,
        method: 'POST'
    })
}

/*
 * 获取验证码
 */
export const getYanZengAPI = () => API({url: '/captcha', method: 'GET'})